<select name="sta_id" <?=$estilo;?>>

    <?php
    $sql_status = "SELECT * FROM status ORDER BY sta_id";
    $res_status = sql($sql_status);
    while($linha_status = mysql_fetch_array($res_status)){
    ?>
    <option value="<?=$linha_status['sta_id'];?>" <?php if($linha_status['sta_id'] == $sta_id) { echo "selected"; } ?>><?=$linha_status['sta_nome'];?></option>
    <?php } ?>

</select>